#define _CRT_SECURE_NO_WANINGS 1
#pragma warning(disable: 4996)
#include"mybts.h"
#include<vector>
using namespace std;
void test1()
{
	
	yjl::bstree<int, int> bs;
	vector<int> v = { 2,4,1,5,7,3,7,1,2,13,10,20,9,11,14,16 };
	for (auto& num : v)
	{
		bs.Insert(num, num);
	}
	bs.InOrder();
	std::cout << std::endl;
	bs.Erase(14);
	bs.Erase(1);
	bs.Erase(10);
	bs.InOrder();

}
int main()
{
	test1();
	return 0;
}